﻿
    using Chain.BLL;
    using Chain.Model;
    using System;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public partial class SmsTemplateInfo : PageBase
    {
   
        private string strTemplateID = "";


        protected void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack)
            {
                if (base.Request.QueryString["TemplateID"] != null)
                {
                    this.strTemplateID = base.Request.QueryString["TemplateID"];
                }
                this.Set_TemplateInfo();
            }
        }

        private void Set_TemplateInfo()
        {
            if (this.strTemplateID != "")
            {
                Chain.BLL.SmsTemplate template = new Chain.BLL.SmsTemplate();
                Chain.Model.SmsTemplate model = new Chain.Model.SmsTemplate();
                model = template.GetModel(int.Parse(this.strTemplateID));
                this.txtTemplateID.Value = this.strTemplateID;
                this.txtTemplateName.Value = model.TemplateName;
                this.txtTemplateContent.Value = model.TemplateContent;
            }
        }
    }


